#!/usr/bin/env python
# -*- coding: utf-8 -*-
""""""
__author__ = "Lei Chen <hide1713@gmail.com>"
import unittest
import sys
sys.path.append("../")
from src.cog_file_reader import CogFileReader

class TestCogFileReader(unittest.TestCase):
    """CogFileReader Unit
    """
    
    def test_read(self):
        """Test read sample cog file"""
        cog_reader = CogFileReader()
        cog_map = cog_reader.read("meta/sample.cog")
        self.assertEqual(len(cog_map), 4873)
        self.assertEqual(cog_map["COG0008"].length, 717)


if __name__ == '__main__':
    unittest.main()
